package com.hfxt.dao;

import com.hfxt.entity.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UsersDao {

    public  int getCount();

    public List<Users> getUsers();

    public List<Users> getUsersByUsername(String username);

    public List<Users> getUsersByCondition1(@Param("username") String username, @Param("money") Integer money);

    public List<Users> getUsersByCondition2(Map<String,Object> maps);

    public List<Users> getUsersByCondition3(Users users);

    public List<Users> getUsersByCondition4(@Param("users") Users users);

    public List<Users> getUsersByCondition5(@Param("choice") String choice);

    public List<Users> getUsersByCondition6(Integer[] roleids);

    public List<Users> getUsersByCondition7(List<Integer> roleids);

    public  int addUsers(@Param("users") Users users);
    public  int updateUsers(@Param("users") Users users);



    //分页
    public  int getCount2(@Param("users") Users users);
    public  List<Users> getUserByPage(@Param("users") Users users,
                                      @Param("pageIndex") Integer pageIndex,
                                      @Param("pageSize") Integer pageSize);



    public  Users getUsersByiD(@Param("userid") Integer userid);


}
